﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ActivateAccount.aspx.cs" Inherits="ActivateAccount" Title="Account Activation - Information Literacy Education" %>

<%@ Register TagPrefix="uc" TagName="ModalPopupMessage" Src="~/UserControls/ModalPopupMessage.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">
    <uc:ModalPopupMessage ID="ModalPopupMessage" runat="server" />
    <div class="borderedBox">
        <table>
            <tr>
                <td>
                </td>
                <td>
                    <h2>
                        Account Activation
                    </h2>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="tableLeftHeader">
                    Email * :
                </td>
                <td class="tableItem">
                    <asp:TextBox ID="txtEmail" runat="server" Width="200"  MaxLength="100" />
                    <asp:RequiredFieldValidator ID="rfValidator1" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="* Email is Required." Display="Dynamic" ValidationGroup="Activate" />
                    <asp:RegularExpressionValidator ID="regexpvalEmail" runat="server" ErrorMessage="* Must be a vaild Emaill address."
                        Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ValidationGroup="Activate" ControlToValidate="txtEmail" />
                </td>
            </tr>
            <tr>
                <td class="tableLeftHeader">
                    Activation Code * :
                </td>
                <td class="tableItem">
                    <asp:TextBox ID="txtActivationCode" runat="server" Width="200" MaxLength="50"  />
                    <asp:RequiredFieldValidator ID="rfValidator2" runat="server" ControlToValidate="txtActivationCode"
                        Display="Dynamic" ErrorMessage="* Activation Code is Required." ValidationGroup="Activate" />
                </td>
            </tr>
            <tr>
                <td></td>
                <td style="height: 40px; vertical-align: bottom;">
                    <asp:Button ID="btnActivate" runat="server" Width="200" Text="Activate My Account"
                        ValidationGroup="Activate" OnClick="btnActivate_Click" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td style="text-align: center; height: 30px; vertical-align: bottom;">
                    <asp:LinkButton ID="lnkbtnResendActivationCode" runat="server" Font-Size="Small">Resend Activation Code</asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderResendActivationCode" runat="server"
        BackgroundCssClass="modalBackground" TargetControlID="lnkbtnResendActivationCode"
        PopupControlID="PanelResendActivationCode" CancelControlID="btnClose" DropShadow="true"
        PopupDragHandleControlID="PanelResendActivationCodeTitle">
    </ajaxToolkit:ModalPopupExtender>
    <asp:Panel ID="PanelResendActivationCode" runat="server" Width="600" CssClass="modalPopup"
        Style="display: none">
        <asp:Panel ID="PanelResendActivationCodeTitle" runat="server">
            <div class="modalPopupTitle">
                Resend Activation Code
            </div>
        </asp:Panel>
        <div class="modalPopupContext">
            <!-- *SteveMsg -->
            <ul style="font-size: medium; text-align: left; padding-left: 40px;">
                <li>Please enter the email address used to sign up for ILE below.</li>
                <li>Email :
                    <asp:TextBox ID="txtResendEmail" runat="server" Width="200" MaxLength="100"  />
                    <asp:RequiredFieldValidator ID="rfValidator3" runat="server" ControlToValidate="txtResendEmail"
                        ErrorMessage="* Email is Required." Display="Dynamic" ValidationGroup="Resend" />
                    <asp:RegularExpressionValidator ID="regexpvalEmail2" runat="server" ErrorMessage="* Must be a vaild Email address."
                        Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ValidationGroup="Resend" ControlToValidate="txtResendEmail" />
                </li>
                <li>Then, please click the "Resend" button below to request another email. </li>
            </ul>
        </div>
        <div class="modalPopupBottom">
            <asp:Button ID="btnResendActivationCode" runat="server" Text="Resend" OnClick="btnResendActivationCode_Click"
                ValidationGroup="Resend" />
            &nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnClose" runat="server" Width="150" Text="Close" />
        </div>
    </asp:Panel>
</asp:Content>
